<?php
/**
 * Created by PhpStorm.
 * User: bolle
 * Date: 20.12.15
 * Time: 15:16
 */

namespace tbollmeier\alteraparser\syntaxgraph;


trait Clonable
{
    public function copy()
    {
        $clonedObj = new static();
        $clonedObj->onCopy($this);

        return $clonedObj;
    }

    protected abstract function onCopy($original);

}